package com.jxd.project.travel.dao;

import com.baomidou.mybatisplus.core.mapper.BaseMapper;
import com.baomidou.mybatisplus.core.metadata.IPage;
import com.jxd.project.travel.model.Travel;
import org.apache.ibatis.annotations.Param;

import java.util.List;

public interface ITravelDao extends BaseMapper<Travel> {

    IPage<Travel> getTravelListByDeptAndApproval(IPage<Travel> page,
                                                @Param("deptno") int deptno,
                                                @Param("approval") int approval);

    IPage<Travel> getTravelListByApproval(IPage<Travel> page,
                                         @Param("approval") int approval);

    int deleteByTravelId(List<String> travelIds);

}
